package cn.edu.tju.se.auth.repository;

import java.util.List;
import java.util.Set;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.edu.tju.se.auth.domain.Role;
import cn.edu.tju.se.auth.domain.Udr;

@Repository
public interface UdrRepository extends JpaRepository<Udr,Integer>{
	@Query("select u from auth_r_user_group_role u where user_id=?1 and group_id=?2")
	public Set<Udr> findByUserIdAndGroupId(Long userId,Long groupId);
	
}
